// 云函数入口文件
const cloud = require('wx-server-sdk')
var rq = require('request-promise')
const fs = require('fs'); //文件模块
const path = require('path'); //系统路径模块
cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {
  var file = path.join(__dirname, 'videos-tv.json');
  var result = JSON.parse(fs.readFileSync(file, 'utf-8'));
  return result;
}